import { Injectable } from '@nestjs/common';
import { CreateApSatelliteDto } from './dto/create-ap_satellite.dto';
import { UpdateApSatelliteDto } from './dto/update-ap_satellite.dto';

@Injectable()
export class ApSatelliteService {
  
  public satelliteCount: number = 3;

  getSatelliteCount() {
    return {
      code: 200,
      data: {
        count: this.satelliteCount
      }
    }
  }

  public satelliteCityLonLat: any[] = [
    {
      name: '新疆维吾尔自治区',
      N: 41.748,
      E: 84.9023,
    },
    {
      name: '西藏自治区',
      N: 30.1465,
      E: 86.6025,
    }
  ]

  getSatelliteCityLonLat(){
    return {
      code: 200,
      data: {
        lonList: this.satelliteCityLonLat
      }
    }
  }
}
